package cn.icare.cms.feignclients;

import cn.icare.cms.model.vo.rest.RespMsgVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Classname ADClient
 * @Description TODO
 * @Date 2020/3/6 11:17
 * @Created by Administrator
 */
@FeignClient("microservice-app")
@Service
public interface ADClient {
    //获取所有广告列表
    @GetMapping("/rest/ad")
    ResponseEntity<RespMsgVO> getAllAD(@RequestParam("type") final Integer type, @RequestParam("status") final Integer status);
}
